// 顶部固定模块
.top {
    position: fixed;
    top: 0;
    z-index: 9;
    background: #f5f5f5;

    // 头部新人红包
    .header {
        font-size: 0;

        img {
            width: 100vw;
        }
    }

    // 搜索模块
    .search-nav {
        display: flex;
        height: 0.88rem;
        padding: 0.146667rem 0;

        .logo {
            width: 1.386667rem;

            a {
                height: 100%;
                margin: 0 auto;
                display: block;
                background: url(../images/logo.png) no-repeat center;
                background-size: 0.6667rem;
            }
        }

        .search {
            display: flex;
            flex: 1;
            background: #fff;
            border: 0.04rem solid #ccc;
            border-radius: 0.08rem;
            color: #a2a2a2;
            align-items: center;

            span {
                width: 0.853333rem;
                text-align: center;
            }

            input {
                font-size: 0.426667rem;

                &::placeholder {
                    color: #a2a2a2;
                }
            }
        }

        .icon-dibutubiao_wode {
            font-size: 0.48rem;
            width: 1.386667rem;
            line-height: 0.88rem;
            text-align: center;
        }
    }

    // nav部分
    .nav {
        height: 0.826667rem;
        display: flex;

        nav {
            flex: 1;

            ul {
                display: flex;
                justify-content: space-around;

                li {
                    height: 0.773333rem;
                    line-height: 0.773333rem;
                    font-size: 0.373333rem;
                    color: rgb(116, 116, 116);

                    &:first-child {
                        color: red;
                        border-bottom: 0.05rem solid red;
                    }
                }
            }
        }

        .icon-down {
            width: 0.933333rem;
            margin-left: 0.226667rem;
            font-size: 0.42rem;
            color: #bdbdbd;
            text-align: center;
            line-height: 0.773333rem;
        }
    }
}

// 轮播图
.swiper {
    position: relative;
    width: 100vw;
    margin-top: 3.3466667rem;
    overflow: hidden;

    ul {
        display: flex;
        width: 400vw;
        animation: animate 9s infinite;
    }

    ol {
        position: absolute;
        left: 50%;
        bottom: 0.293333rem;
        width: 1.333333rem;
        height: 0.266667rem;
        transform: translateX(-50%);
        background-color: #fff;
        border-radius: 0.133333rem;
    }
}

// 定义动画
@keyframes animate {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(0);
    }

    33% {
        transform: translateX(-100vw);
    }

    58% {
        transform: translateX(-100vw);
    }

    66% {
        transform: translateX(-200vw);
    }

    92% {
        transform: translateX(-200vw);
    }

    100% {
        transform: translateX(-300vw);
    }
}

// icon-list部分
.icon-list {
    width: 100vw;
    border-top: 0.04rem solid #ccc;
    // height: 3.04rem;

    ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;

        li {
            img {
                width: 2rem;
            }
        }
    }
}

// 图片
.red-bag {
    ul {
        display: flex;
    }
}

// hot-shop部分
.hot-shop {
    display: flex;
    overflow: hidden;

    .left-box {
        flex: 1;
        margin-right: 0.1rem;
    }

    .right-box {
        display: flex;
        flex-direction: column;
        flex: 1;
        box-sizing: border-box;

        .top-box {
            flex: 1;
            margin-bottom: 0.1rem;
        }

        .bottom-box {
            flex: 1;
        }
    }
}

// xiaomi10 & redmi note8
.xiaomi10_note8 {
    margin-top: .3rem;

    .xiaomi10 {
        margin-bottom: .3rem;
    }
}

// Phone部分
.Phone {
    padding-top: 0.25rem;
    background: #fff;
}

// 小米电视
.TV {
    margin-top: 0.25rem;
    background: #fff;
}

// 小米笔记本
.Notebook {
    margin-top: 0.25rem;
    background: #fff;
}

// 小米净水器
.water {
    margin-top: 0.25rem;
    background: #fff;
}

// 小米手表
.watch {
    background: #fff;
}

// list-items部分
.list-items {
    .items {
        background: #fff;

        ul {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;

            li {
                width: 49.7vw;
            }
        }
    }
}

// 了解小米
.aboutMi {
    height: 1.06rem;
}

// 到底提示
.footer-text {
    text-align: center;
    color: #ccc;
    font-size: 0.3rem;
}

// footer
.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 1.386667rem;
    background: #fff;
    color: #999;

    ul {
        display: flex;

        li {
            display: flex;
            flex-wrap: wrap;
            font-size: 0.32rem;
            height: 100%;
            flex: 1;
            text-align: center;
            justify-content: center;

            &:first-child {
                color: red;
            }

            i {
                width: 100%;
                margin-top: 0.1rem;
                font-size: 0.556667rem;
            }

            span {
                margin-top: 0.15rem;
            }
        }
    }
}